// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addBiTeam POST /api/biTeam/add */
export async function addBiTeamUsingPost(
  body: API.BiTeamAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/biTeam/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteBiTeam POST /api/biTeam/delete */
export async function deleteBiTeamUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/biTeam/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getBiTeamById GET /api/biTeam/get */
export async function getBiTeamByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getBiTeamByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBiTeam_>('/api/biTeam/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getBiTeamVOById GET /api/biTeam/get/vo */
export async function getBiTeamVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getBiTeamVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBiTeamVO_>('/api/biTeam/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** joinBiTeam POST /api/biTeam/joinBiTeam */
export async function joinBiTeamUsingPost(
  body: API.BiJoinTeamRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/biTeam/joinBiTeam', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** leaveBiTeam POST /api/biTeam/leaveBiTeam */
export async function leaveBiTeamUsingPost(
  body: API.BiJoinTeamRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/biTeam/leaveBiTeam', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listBiTeamByPage POST /api/biTeam/list/page */
export async function listBiTeamByPageUsingPost(
  body: API.BiTeamQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageBiTeam_>('/api/biTeam/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listBiTeamVOByPage POST /api/biTeam/list/page/vo */
export async function listBiTeamVoByPageUsingPost(
  body: API.BiTeamQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageBiTeamVO_>('/api/biTeam/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** shareBiTeam GET /api/biTeam/shareBiTeam */
export async function shareBiTeamUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.shareBiTeamUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBiTeamVO_>('/api/biTeam/shareBiTeam', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** updateBiTeam POST /api/biTeam/update */
export async function updateBiTeamUsingPost(
  body: API.BiTeamUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/biTeam/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
